package com.ciaj.module.sys.entity.po;

import com.ciaj.base.bean.SupperEntity;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
* <p>
* 系统用户表 Gen Entity
* </p>
*
* @author ciaj.
* @since 2020-08-14
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="SysUser对象", description="系统用户表")
public class SysUser extends SupperEntity<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户账号、手机号、邮箱、其他")
    @TableField("account")
    private String account;

    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "昵称")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty(value = "性别,0女,1男,2未知")
    @TableField("sex")
    private String sex;

    @ApiModelProperty(value = "电话号码")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "生日")
    @TableField("birthday")
    private LocalDate birthday;

    @ApiModelProperty(value = "用户所属省")
    @TableField("province")
    private String province;

    @ApiModelProperty(value = "用户所属城市")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "用户所属区")
    @TableField("district")
    private String district;

    @ApiModelProperty(value = "用户详细地址")
    @TableField("addr")
    private String addr;

    @ApiModelProperty(value = "来源，pc/系统  app/移动端 other/其他 ...")
    @TableField("source")
    private String source;

    @ApiModelProperty(value = "用户类型、org_user、组织用户，other_user、其他用户")
    @TableField("user_type")
    private String userType;

    @ApiModelProperty(value = "用户状态，在职inservice，离职中leaveing，已离职leave，重新雇佣")
    @TableField("user_status")
    private String userStatus;

    @ApiModelProperty(value = "锁定状态 0正常/1锁定")
    @TableField("locked")
    private String locked;

    @ApiModelProperty(value = "头像地址")
    @TableField("pic_url")
    private String picUrl;

    @ApiModelProperty(value = "所在部门ID")
    @TableField("dept_id")
    private String deptId;

    @ApiModelProperty(value = "所在部门名称")
    @TableField("dept_name")
    private String deptName;

    @ApiModelProperty(value = "所在部门集合ID")
    @TableField("dept_ids")
    private String deptIds;

    @ApiModelProperty(value = "所在部门集合名称")
    @TableField("dept_names")
    private String deptNames;


}
